<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu"/>
<meta name="nav" content="0"/>
<meta name="acc" content="2"/>
<title>单位管理</title>
</head>
<body>
<form id="mainForm" action="${ctx }/account/inside_organization.action" method="post" class="yform">
<input type="hidden" name="page.pageNo" id="pageNo"
	value="${page.pageNo}" /> <input type="hidden" name="page.orderBy"
	id="orderBy" value="${page.orderBy}" /> <input type="hidden"
	name="page.order" id="order" value="${page.order}" />
<div id="message">
	<s:actionmessage theme="custom" cssClass="success" />
</div>
<div id="content">
<table id="contentTable">
	<tr>
		<th><a href="javascript:sort('createDate','asc')">序号</a></th>
		<th><a href="javascript:sort('orgName','asc')">单位名称</a>
		</th>
		<th><a href="javascript:sort('burderDep','asc')">主管部门</a>
		</th>
		<th><a href="javascript:sort('orgNum','asc')">机构代码证</a>
		</th>
		<th>成立时间</th>
		<th>操作</th>
	</tr>

	<c:forEach items="${page.result }" var="organization" varStatus="var">
		<tr>
			<td>${page.first+var.index }</td>
			<td id="orgName${var.count}">${organization.orgName}</td>
			<td>${organization.burderDep}&nbsp;</td>
			<td>${organization.orgNum}&nbsp;</td>
			<td>${organization.finishDate }</td>
			<td>&nbsp;
				<security:authorize ifAnyGranted="ROLE_浏览用户">
					<security:authorize ifNotGranted="ROLE_修改用户">
						<a href="organization!input.action?id=${organization.id}">查看</a>&nbsp;
					</security:authorize>
				</security:authorize>

					<a href="inside_organization!input.action?id=${organization.id}">修改</a>&nbsp;
					<a href="inside_organization!delete.action?id=${organization.id}" onclick="return confirmDelete();">删除</a>
			</td>
		</tr>
	</c:forEach>
</table>
</div>
<div>
	第${page.pageNo}页, 共${page.totalPages}页 <a
		href="javascript:jumpPage(1)">首页</a>
	<s:if test="page.hasPre">
		<a href="javascript:jumpPage(${page.prePage})">上一页</a>
	</s:if>
	<s:if test="page.hasNext">
		<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
	</s:if>
	<a href="javascript:jumpPage(${page.totalPages})">末页</a>
	
</div>
<div class="type-button"><input onclick="location.href='${ctx}/account/inside_organization!input.action'" type="button" class="add" value="新增" /> 
</div>
</form>
</body>
</html>